#include "StdAfx.h"
#include "DealCard.h"
#include "GameLogic.h"
#include "Lord.h"

CDealCard::CDealCard(void)
{
	m_nDealCount = 0;
	m_nDealSeat = 0;
	m_nFinishCount = 0;
}

CDealCard::~CDealCard(void)
{
}

void CDealCard::OnNextFrame()
{
	CSprite::OnNextFrame();
	if(m_nDealCount < All_Card_Count)
	{
		if(m_nDealCount < All_Card_Count - Bottom_Card_Count)
		{
			g_pLordGame->PlayDealCard();
		    m_nDealSeat = (m_nDealSeat + 1) % Player_Count;
			m_nDealCount++;
		}
		else
		{
			g_pLordGame->PlayDealBottom();
			m_nDealCount+=Bottom_Card_Count;
		}
	}
}
